/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.foxinline.servico;

import br.com.foxinline.modelo.Processo;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author laverson
 */
@Stateless
public class ProcessoServico extends ServicoGenerico<Processo> {

    @EJB
    UsuarioServico usuarioServico;

    public ProcessoServico() {
        super(Processo.class);
    }

    @Override
    public void salvar(Processo entity) {

        entity.setUsuario(usuarioServico.getCurrentUser());

        super.salvar(entity);
    }
}
